package com.superatom.springframework.beans.factory.parsing;

import com.superatom.springframework.core.io.Resource;
import com.superatom.springframework.lang.Nullable;

/**
 * @author Kwokchiu Wong
 * @Title:
 * @Package
 * @Description:
 * @date 2020/10/19 10:27 上午
 */
public class PassThroughSourceExtractor implements SourceExtractor {

    /**
     * Simply returns the supplied {@code sourceCandidate} as-is.
     * @param sourceCandidate the source metadata
     * @return the supplied {@code sourceCandidate}
     */
    @Override
    public Object extractSource(Object sourceCandidate, @Nullable Resource definingResource) {
        return sourceCandidate;
    }

}
